package com.whg.demo.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author whg
 * @create 2022/11/30 15:18
 * @description：
 */
@Component
@ConfigurationProperties
public class TestProperties {

    @Value("${test.name}")
    private String name;

    @Value("${test.version}")
    private int version;

    @Value("${test.url}")
    private String testUrl;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public String getTestUrl() {
        return testUrl;
    }

    public void setTestUrl(String testUrl) {
        this.testUrl = testUrl;
    }
}
